<template>
	<view class="viewbox auto p-top10 p-bot20">
		<u-parse :content="pageData.website_article_content" :domain="$imgUrl"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				artId:'',
				pageData:''
			}
		},
		onLoad(options) {
			if(options.artId) this.artId = options.artId
			this.getDetail()
		},
		methods: {
			getDetail(){
				this.$http.get({
					url: '/zzjApp/articleInfo',
					data: {
						website_article_id: this.artId
					}
				}).then(res => {
					if(res.errcode != '00000') return this.$Toast(res.msg,2)
					const result = res.data
					this.pageData = result
					if(!result) return
					this.$BarTitle(result.website_article_title)
				})
			},
		}
	}
</script>

<style lang="scss" scoped>

</style>
